package com.amt.exception;

import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;

/**
 * 
 * @Title: TryAgainException.java 
 * @Package com.amt.configure 
 * @Description: TODO(自定义重试异常) 
 * @author 江伟
 * @date 2021年03月13日 下午5:01:39
 * Copyright (c) ©1994-2021 Scjydz.com All Rights Reserved.
 */
public class TryAgainException extends RuntimeException {
 
    //@Fields serialVersionUID :  
	private static final long serialVersionUID = 1L;
	
	@SuppressWarnings("unused")
	private Integer status = INTERNAL_SERVER_ERROR.value();
 
    public TryAgainException( String msg) {
        super(msg);
    }
 
    public TryAgainException(HttpStatus status, String msg) {
        super(msg);
        this.status = status.value();
    }
 
}